<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>学并思留言板</title>
	<link rel="stylesheet" type="text/css" href="<?php echo CSS; ?>/bootstrap.min.css">
	<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
	<script type="text/javascript" src="<?php echo JS; ?>/bootstrap.min.js"></script>
</head>
<body>

  <?php if ($is){ ?>

      <div class="alert alert-success" role="alert">
      <strong><?php echo $info; ?></strong> <span id="num"></span>秒之后将跳转
    </div>

  <?php }else{ ?>

  	<div class="alert alert-danger" role="alert">
      <strong><?php echo $info; ?></strong> <span id="num"></span>秒之后将跳转
    </div>

   <?php } ?>

  <script type="text/javascript">
    $(function () {

      num = <?php echo $time; ?>;

      function run() {

        $("#num").text(num);

        num--;

        if(num==0){
            location.href ="<?php echo $url; ?>"
        }
          
      }
      run();
      setInterval(run,1000);
    })
  </script>
</body>
</html>